﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hp.Vertica.Migration.SqlServer
{
    public class Schema
    {
        public String Name { get; set; }

        public Database Database { get; set; }

        public Schema(String name, Database db)
        {
            this.Name = name;
            this.Database = db;
        }

        public Boolean IsSystemObject
        {
            get
            {
                String name = this.Name.ToUpper();
                String[] sysdbs = new String[] { "INFORMATION_SCHEMA", "SYS"};
                if (sysdbs.Contains(name))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }

    }
}
